#include<bits/stdc++.h>
using namespace std;
long long n,a[100010],ans;
int main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    for(int i=1;i<=n;i++)
    cin>>a[i];
    sort(a+1,a+n+1);
    int i=1,l=1;
    while(l<=n)
    {
        if(a[l]==a[i])
        while(a[l]==a[i]&&l<=n) l++;
        else
        {
            ans++;
            i++,l++;
        }
    }
    cout<<n-ans;
    return 0;
}
